package com.cty.LinkedList;

import org.junit.Test;

/*
* 约瑟夫问题的测试
* */
public class josephu {
    @Test
    public void test() {
        //创建一个环形链表
        CircleSingleLinkedList circleSingleLinkedList = new CircleSingleLinkedList();
        //添加小孩的数目
        circleSingleLinkedList.addBoy(5);
        //遍历小孩
        circleSingleLinkedList.showBoy();
        System.out.println("===============约瑟夫问题的实现================");
        //约瑟夫出圈
        CircleSingleLinkedList circleSingleLinkedList1 = new CircleSingleLinkedList();
        circleSingleLinkedList1.delete(25,1,2);
    }

}
